﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DeepHash
{
    [HashAlgorithem("SHA1")]
    public class SHA1Algorithem : IHashingAlgorithem
    {
        #region IHashingAlgorithem Members

        public byte[] GetHashValue(System.IO.Stream stream)
        {
            System.Security.Cryptography.SHA1 sha1= new System.Security.Cryptography.SHA1CryptoServiceProvider();
            byte[] result = sha1.ComputeHash(stream);
            sha1.Clear();
            return result;
        }

        public bool VerifyHash(System.IO.Stream stream, byte[] hashValue)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
